package com.finalhomework.dms.dao;

import com.finalhomework.dms.entities.Students;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentRepository extends CrudRepository<Students,Long> {

    @Override
    public List<Students> findAll();

    public Students getStudentsById(long id);
    public Students getStudentsByNumber(Object number);


    public Students deleteById(long id);
}
